﻿namespace FaceService.WebAPI.Controllers.FaceInfo;

public record UpdatedFaceRequest(Guid Id, string Name, string Image, string StudentId);

public class UpdatedFaceRequestValidator : AbstractValidator<UpdatedFaceRequest>
{
    public UpdatedFaceRequestValidator()
    {
        RuleFor(e => e.Id).NotNull().NotEmpty();
        RuleFor(e => e.Name).NotNull().NotEmpty();
        RuleFor(e => e.Image).NotNull().NotEmpty();
        RuleFor(e => e.StudentId).NotNull().NotEmpty();
    }
}